/**
 * 
 */
package com.cp16.tss.dto;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * @author ADMIN
 * 
 */

@Entity
@Table(name = "BILL")
public class Bill implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "BILL_ID")
	private int billId;
	@OneToOne(cascade = CascadeType.ALL)
	private Requirement requirement;
	@Column(name = "AMOUNT_NOT_VAT")
	private int billAmountNotExistVAT;
	@Column(name = "AMOUNT_EXIST_VAT")
	private int billAmountExistVAT;
	@Column(name = "AMOUNT_SUM")
	private int billSumAmount;
	@OneToOne(cascade = CascadeType.ALL)
	private UserLogin userLogin;

	/**
	 * @return the billId
	 */
	public int getBillId() {
		return billId;
	}

	/**
	 * @param billId
	 *            the billId to set
	 */
	public void setBillId(int billId) {
		this.billId = billId;
	}

	/**
	 * @return the requirement
	 */
	public Requirement getRequirement() {
		return requirement;
	}

	/**
	 * @param requirement
	 *            the requirement to set
	 */
	public void setRequirement(Requirement requirement) {
		this.requirement = requirement;
	}

	/**
	 * @return the billAmountNotExistVAT
	 */
	public int getBillAmountNotExistVAT() {
		return billAmountNotExistVAT;
	}

	/**
	 * @param billAmountNotExistVAT
	 *            the billAmountNotExistVAT to set
	 */
	public void setBillAmountNotExistVAT(int billAmountNotExistVAT) {
		this.billAmountNotExistVAT = billAmountNotExistVAT;
	}

	/**
	 * @return the billAmountExistVAT
	 */
	public int getBillAmountExistVAT() {
		return billAmountExistVAT;
	}

	/**
	 * @param billAmountExistVAT
	 *            the billAmountExistVAT to set
	 */
	public void setBillAmountExistVAT(int billAmountExistVAT) {
		this.billAmountExistVAT = billAmountExistVAT;
	}

	/**
	 * @return the billSumAmount
	 */
	public int getBillSumAmount() {
		return billSumAmount;
	}

	/**
	 * @param billSumAmount
	 *            the billSumAmount to set
	 */
	public void setBillSumAmount(int billSumAmount) {
		this.billSumAmount = billSumAmount;
	}

	/**
	 * @return the userLogin
	 */
	public UserLogin getUserLogin() {
		return userLogin;
	}

	/**
	 * @param userLogin
	 *            the userLogin to set
	 */
	public void setUserLogin(UserLogin userLogin) {
		this.userLogin = userLogin;
	}

}
